
<!DOCTYPE html>
<html lang="cn">
<head>
	<meta charset="UTF-8">
	<title>a标签测试</title>

</head>
<body>
	
	
	<a href="https://www.baidu.com" onclick="return false"  style="float:left;width:100vh;height:100vh;border:1px solid #000; background-color: #0000FF;background-image: url(https://img.haotu555.net/tupic/2020/img/200611/11145152-020K.jpg);"></a>
</body>


	<script type="text/javascript">
		
		setTimeout(()=>{

			document.querySelector('a').onclick = function (e){
				
				console.log(this);
				
				return false;
			}
			
		},2000);
		// function getDateTime() {
		// 	alert(new Date().toLocaleString());
			
		// 	return false
		// }
	</script>
</html>